.PHONY:all claen
all:cal_server cal_client

#LDFLAG=-DSELF=1

cal_server:TcpServerMain.cc
	g++ -o $@ $^ $(LDFLAG) -std=c++14 -lpthread -ljsoncpp
cal_client:TcpClientMain.cc
	g++ -o $@ $^ $(LDFLAG) -std=c++14 -ljsoncpp

clean:
	rm -f cal_server cal_client